package edu.ahut.corejava;

public class JoinNumbers1 {
    public static void main(String[] args) {

        long start = System.currentTimeMillis();
        int n = 100009;
        String s = new String();
        System.out.println(s);
        for (int i = 1; i <= n; i++) {
            s = s + i;//s=s+Integer.toString(i);
        }
        System.out.println(s.length());
        long end = System.currentTimeMillis();


        System.out.println((end - start) / 1000.0 + " second(s).");
    }
}
